import QtQuick
import QtQuick.Controls
Column {
    anchors.fill: parent
    // 使用SwipeView实现带动画的页面切换
    SwipeView {
        id: swipeView
        width: parent.width
        height: parent.height
        padding: 20
        currentIndex: 0
        interactive: false

        UserListPage {id: userListPage}
        UserPage {id: userPage}

        onCurrentIndexChanged: {
            // console.log("当前页索引变为:", currentIndex)
            if (currentIndex === 0) userListPage.visible=true;
            else userListPage.visible = false;
            // 在这里添加你的处理逻辑
        }
    }
}
